import server from './request'

//所有的接口
//员工 登录
function staff_login( params = {} ){
    return server.post('/api/staff/login',params);
}
//员工 添加
function staff_add( params = {} ){
    return server.post('/api/staff/add',params);
}
//员工 删除
function staff_del( params = {} ){
    return server.post('/api/staff/del',params);
}
//员工 模糊搜索(分页)
function staff_search( params = {} ){
    return server.post('/api/staff/search',params);
}
//员工 编辑
function staff_edit( params = {} ){
    return server.post('/api/staff/edit',params);
}
//首页 轮播图
function base_swiper1( params = {} ){
    return server.get('/api/base/swiper1',{params});
}
//服务中心 轮播图
function base_swiper2( params = {} ){
    return server.get('/api/base/swiper2',{params});
}
//客户 模糊搜索(分页)
function custom_search( params = {} ){
    return server.post('/api/custom/search',params);
}
//客户 删除单个客户
function custom_del( params = {} ){
    return server.post('/api/custom/del',params);
}
//客户 删除多个客户
function custom_delmany( params = {} ){
    return server.post('/api/custom/delmany',params);
}
//客户 批量更新客户leader
function custom_changeleader( params = {} ){
    return server.post('/api/custom/changeleader',params);
}
//系统管理 实时数据
function system_realtimedata( params = {} ){
    return server.get('/api/system/realtimedata',{params});
}
//系统管理 历史数据
function system_historydata( params = {} ){
    return server.get('/api/system/historydata',{params});
}
//角色 列表
function role_list(params={}){
    return server.get('/api/role/list',{params})
}


///抛出
export{
    staff_add,
    staff_del,
    staff_edit,
    staff_login,
    staff_search,
    system_historydata,
    system_realtimedata,
    custom_changeleader,
    custom_del,
    custom_delmany,
    custom_search,
    role_list,
    base_swiper1,
    base_swiper2
}